<div class="panelLeft">
			{$categoriesAndBrands}
				<br/>
				
			{capture name=formUrl}{if $categoryObj neq null}{url label=mainCategoryView categoryKey=$parentCategoryObj->getSlug() subCategoryKey=$categoryObj->getSlug()}{else}{url label=mainCategoryView categoryKey=$parentCategoryObj->getSlug() subCategoryKey=$activeCompanyObj->getSlug()}{/if}{/capture}
				
			{capture name=formExtFields}
				<input id="browseOptions-cat-0" type="hidden" name="category[0]" value="{$parentCategoryObj->getSlug()}" />
				{if $categoryObj neq null}
					<input id="browseOptions-cat-1" type="hidden" name="category[1]" value="{$categoryObj->getSlug()}" />	
				{ else }
					<input id="browseOptions-cat-1" type="hidden" name="category[1]" value="{$activeCompanyObj->getSlug()}" />	
				{/if}
			{/capture}
		
				
			{include file='partial/Shared/_browseOptions.tpl' formUrl=$smarty.capture.formUrl formExtFields=$smarty.capture.formExtFields}
			
			<br/>
			
			{include file='partial/Shared/_ratingBrowseOptions.tpl'}
			
			<br/>
			
			{include file='partial/Shared/_playersChoice.tpl'}
			
			
			
			
		<!-- panelLeft -->
		</div>
		
		<div class="panelRight">
			
			<div class="sortBar">
				<ul>
					<li class="button"><a class="closed" title="Expand"></a></li>
					<li class="sort">sort by:</li>
					<li>{ftab type='sort' label='popularity' tid='products_list' urlLabel='optCategoryView' o='popularity'}</li>
					<li>{ftab type='sort' label='rate' tid='products_list' urlLabel='optCategoryView' o='rate'}</li>
					<li>{ftab type='sort' label='product name' tid='products_list' urlLabel='optCategoryView' o='name'}</li>
					<li>{ftab type='sort' label='brand' tid='products_list' urlLabel='optCategoryView' o='brand'}</li>
					
					<li class="switch"><a href="?switch" title="{if $listType eq 'list'}{'switch to box view'|t}{else}{'switch to list view'|t}{/if}" class="{if $listType eq 'list'}boxView{else}listView{/if}">{if $listType eq 'list'}{'switch to box view'|t}{else}{'switch to list view'|t}{/if}</a></li>
				</ul>
			</div>
			<div class="sortBarExt {if empty($selectedProperties) and empty($selectedCompanies)}hidden{/if}">
				<p>filters:</p>
				<ul>
					{if empty($selectedProperties) and empty($selectedCompanies)}
					<li>no filters</li>
					{else}
						{foreach from=$filterCompanies item=company}
						{if in_array($company->getId(), $selectedCompanies)}
						<li>{'Brand'|t} - {$company->getName()} <a title="clear filter" id="rem-cmp-{$company->getId()}" class="removeFilter"><img src="{$urlStatic}/image/Strona/iconClose.gif" alt="close"/></a></li>
						{/if}
						{/foreach}
					
					
					
						{foreach from=$filterProperties item=property}
						{assign var=pDesc value=$property->getPropertyDescription()}
						{assign var=pVal value=$property->getPropertyValue()}
							{foreach from=$pVal item=v}
							{if in_array($v->getId(), $selectedPropertyValues)}
								<li>{$pDesc->getDescription()} - {$v->getPrepend()} {$v->getValue()} {$v->getAppend()} <a title="clear filter" id="rem-prop-{$property->getId()}-{$v->getId()}" class="removeFilter"><img src="{$urlStatic}/image/Strona/iconClose.gif" alt="close"/></a></li>
							{/if}
							{/foreach}
						{/foreach}					
					{/if}
				</ul>
				<div class="clearBoth"></div>
			</div>
			
			<div class="pages">
				{if $productsList|@count > 0}
				{ftab type='pagination' tid='products_list' all_count=$c urlLabel='optCategoryView'}
				{ftab type='on_page' tid='products_list' urlLabel='optCategoryView'}
				{/if}
			</div>

			<!-- pages -->
			{foreach from=$productsList item=product name=foo}
			{assign var=prodDesc value=$product->getProductDescription()}
			{assign var=pCategory value=$product->getCategory()}
			{assign var=pCategoryDescription value=$product->getCategoryDescription()}
			<div class="{if $listType eq 'list'}pRacqetV{else}pRacqetB{if $smarty.foreach.foo.iteration is odd} pRacqetBL{/if}{/if}">
				
				<h2><a href="{url label=productView categoryKey=$categoryKey subCategoryKey=$pCategory->getSlug() productKey=$product->getSlug()}" title="{$prodDesc->getName()}">{$prodDesc->getName()}</a></h2>
				<div class="thumb"><a href="{url label=productView categoryKey=$categoryKey subCategoryKey=$pCategory->getSlug() productKey=$product->getSlug()}" title="{$prodDesc->getName()}">
						{if $listType eq 'list'}
						<img src="{$urlStatic}/{image src=$product->getMainImage() w=105 h=105}" alt="{$prodDesc->getName()}"/>
						{else}
						<img src="{$urlStatic}/{image src=$product->getMainImage() w=205 h=205}" alt="{$prodDesc->getName()}"/>
						{/if}
						</a></div>
				{assign var=manufacturer value=$product->getManufacturer()}
				<div class="logo"><a href="{url label=mainCategoryView categoryKey=$categoryKey subCategoryKey=$manufacturer->getSlug()}" title="{$manufacturer->getName()}"><img src="{$urlStatic}/{image src=$manufacturer->getImage() w=201 h=90 c=true}" alt="{$manufacturer->getName()}"/></a></div>
					<script type="text/javascript">
						var comparelock{$product->getId()} = false;
						var compareLink{$product->getId()} = '{url label=productAddToCompare productKey=$product->getSlug() subCategoryKey=$pCategory->getSlug() categoryKey=$categoryKey}';
		{if $product->getAlreadyInCompare()} comparelock{$product->getId()} = true; {/if}
						{literal}
						
				$(function() {
					

					
					$('#add2compare{/literal}{$product->getId()}{literal}').click(function() {
						
						if (comparelock{/literal}{$product->getId()}{literal} == true) {
						compareLink{/literal}{$product->getId()} = '{url label=emptyMyList}{literal}' ;
					}
						
						$('#ajaxLoader').show();

						$.post(compareLink{/literal}{$product->getId()}{literal},
						{productKey:"{/literal}{$product->getSlug()}{literal}"},
						function(response) {
							eval(response);
							if(comparelock{/literal}{$product->getId()}{literal} != true) {
								$('#baloonAddToCompare').fadeIn('slow');
								$('#ajaxLoader').hide();
								$('#add2compare{/literal}{$product->getId()}{literal}').html('{/literal}{'already added'|t}{literal}');
								$('#add2compare{/literal}{$product->getId()}{literal}').attr('title','{/literal}{'already added'|t}{literal}');
								$('#add2compare{/literal}{$product->getId()}{literal}').attr('class','removeCompare');
								comparelock{/literal}{$product->getId()}{literal} = true;
								compareLink{/literal}{$product->getId()} = '{url label=emptyMyList}{literal}' ;
							} else {
								//$('#baloonAddToCompare').fadeIn('slow');
								$('#ajaxLoader').hide();
								$('#add2compare{/literal}{$product->getId()}{literal}').html('{/literal}{'add to compare'|t}{literal}');
								$('#add2compare{/literal}{$product->getId()}{literal}').attr('title','{/literal}{'add to compare'|t}{literal}');
								$('#add2compare{/literal}{$product->getId()}{literal}').attr('class','add2compare');
								comparelock{/literal}{$product->getId()}{literal} = false;
								
								compareLink{/literal}{$product->getId()} = '{url label=productAddToCompare productKey=$product->getSlug() subCategoryKey=$pCategory->getSlug() categoryKey=$categoryKey}{literal}';
							}
						});
						setTimeout("$('#baloonAddToCompare').fadeOut('slow');", 4000);
						return false;

					});
				});{/literal}
			</script>
				<ul class="links">
					<li><a rel="nofollow" title="{if $product->getAlreadyInCompare()}{'already added'|t}{else}{'add to compare'|t}{/if}" id="add2compare{$product->getId()}" class="{if $product->getAlreadyInCompare()}removeCompare{else}add2compare{/if}">{if !$product->getAlreadyInCompare()}{'add to compare'|t}{else}{'already added'|t}{/if}</a></li>
					<li><a href="{url label=productView categoryKey=$categoryKey subCategoryKey=$pCategory->getSlug() productKey=$product->getSlug()}#compareprices" title="{'compare prices'|t}" class="comparePrices">{'compare prices'|t}</a></li>
					<li><a href="{if $_userLoggedIn}{url label=productPdf  categoryKey=$categoryKey subCategoryKey=$subCategoryKey productKey=$product->getSlug()}{else}{url label=logIn}{/if}" title="{'PDF'|t}" {if $_userLoggedIn}target="_blank"{/if} class="{if $_userLoggedIn}pdf{else}pdfInactive{/if}">{'PDF'|t}</a></li>
				</ul>
				<div class="popRatePanel">
					{if $product->getPopularity()!='0'}<p class="popularity">{'popularity'|t}<span>{$product->getPopularity()}</span></p>{/if}
					{if $product->getRate()!='0.00'}<p class="rate">{'rate'|t}<span>{$product->getRate()}</span></p>{/if}
				</div>
				<p class="group">{'product group'|t}: <a href="{url label=mainCategoryView categoryKey=$categoryKey subCategoryKey=$pCategory->getSlug()}" title="{$pCategoryDescription->getName()}">{$pCategoryDescription->getName()}</a></p>
				{if $product->getRank()!='0'}<div class="rank">rank<span>{$product->getRank()}</span></div>{/if}
				{foreach from=$product->productRanking item=rank}
					{if $rank->productRankingType->getId()==1}
					<a class="scVip"  title="{'VIP'|t}"></a>
					{elseif $rank->productRankingType->getId()==2}
					<a class="scTopR" title="{'Top Rated'|t}"></a>
					{elseif $rank->productRankingType->getId()==3}
					<a class="scTopP" title="{'Top Popular'|t}"></a>
                                        {elseif $rank->productRankingType->getId()==4}
                                        <a class="scNew" title="{'New'|t}"></a>
					{/if}
				{/foreach}
				
				<div class="extendedRanks">
				{foreach from=$product->productVotes item=vote}
				<div class="label">{$vote->productVotesType->getName()|t}</div>
				<div class="ruler"><img src="{$urlStatic}/image/Strona/backgroundRulerValue.gif" width="{$vote->getValue()}" alt="bar"/></div>
				{/foreach}
				</div>
			</div>		
			{foreachelse}
			<b>{'Products list is empty'|t}</b>
			{/foreach}
			
			<div class="clearBoth"></div>
			<div class="pages">
				{if $productsList|@count > 0}
				{ftab type='pagination' tid='products_list' all_count=$c urlLabel='optCategoryView'}
				{ftab type='on_page' tid='products_list' urlLabel='optCategoryView'}
				{/if}
			</div>
		
		
		<!-- panelRight -->
		</div>